Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: compute which Xpage to open
Feedback Type: Question
Product Area: Other
Technical Area: Application Development
Platform: Windows
Release: 8.5.2
Reproducible: Not applicable

Hi,

I'd like to open different Xpages from a button on a Custom Control, based on the current URL.
On the onClick event of the button I selected "Open Page" then I added the following script to the "Name of Page to Open":

var str = context.getUrl();
var xpg = "xpages1.xsp";
if (str.indexOf(xpg) > 1) {"xpages2.xsp"}
else {"xpages3.xsp"}

The selected language is "JavaScript (server side)"

I just can't get it work....
Thank you for your help,

Etyien


Feedback number WEBB8BNSWZ created by ~Xagra Quetateroni on 11/29/2010

Status: Open
Comments:

compute which Xpage to open (~Xagra Quetater... 29.Nov.10)
. . Convert the url to a string type (~August Retumiz... 30.Nov.10)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS